package com.ev.mes.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;


/**
 * 生产投料单（详情列表）
 * 
 * @author ev-monitor
 * @email 286600136@qq.com
 * @date 2019-11-22 10:10:27
 */
@Data
@ApiModel(value = "生产投料单（详情列表）")
public class ProductionFeedingDetailDO implements Serializable {
	private static final long serialVersionUID = 1L;

	//
	@ApiModelProperty()
	private Long id;
	//主表ID
	@ApiModelProperty(value = "主表ID")
	private Long headId;

	@ApiModelProperty(value = "生产计划")
	private Long productionPlanId;

	@ApiModelProperty(value = "投料单id")
	private Long feedingId;

	@ApiModelProperty(value = "生产投料工单号")
	private String feedingNo;

	//产品ID
	@ApiModelProperty(value = "生产产品id")
	private Long productId;

	//产品ID
	@ApiModelProperty(value = "生产计划id")
	private Long planId;

	//产品ID
	@ApiModelProperty(value = "生产计划单号")
	private String planNo;

	//产品ID
	@ApiModelProperty(value = "投料物料ID")
	private Long materielId;

	@ApiModelProperty(value = "投料物料名称")
	private String materielName;

	@ApiModelProperty(value = "投料物料型号")
	private String materielSpecification;

	//批号
	@ApiModelProperty(value = "投料物料批号")
	private String batchNo;
	//计划投料数量
	@ApiModelProperty(value = "计划投料数量")
	private BigDecimal planFeeding;
	//已出数量
	@ApiModelProperty(value = "已出数量")
	private BigDecimal outCount;
	@ApiModelProperty(value = "计划生产物料数量")
	private BigDecimal planCount;
	//报废数量
	@ApiModelProperty(value = "报废数量")
	private BigDecimal scrapCount;
	//创建人
	@ApiModelProperty(value = "创建人")
	private Long createBy;
	//创建时间
//	@ApiModelProperty(value = "创建时间")
//	private Date createTime;
	//修改人
	@ApiModelProperty(value = "修改人")
	private Long updateBy;
	//修改时间
	@ApiModelProperty(value = "修改时间")
	private Date updateTime;
	//删除状态
	@ApiModelProperty(value = "删除状态")
	private Integer delFlag;
	//发料仓库ID
	@ApiModelProperty(value = "发料仓库ID")
	private Long facilityId;
	//库位ID
	@ApiModelProperty(value = "库位ID")
	private Long locationId;
	//需求工序ID
	@ApiModelProperty(value = "需求工序ID")
	private Long processId;
	//需求工位ID
	@ApiModelProperty(value = "需求工位ID")
	private Long stationId;
	// 是否用料采集
	@ApiModelProperty(value = "是否用料采集")
	private Integer isCollect;
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
	@ApiModelProperty(value = "开始时间")
	private Date createTime;


	@ApiModelProperty(value = "通知主键+金蝶明细序号")
	private String interidEntryid;

}
